﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookManege.entity
{
    internal class User
    {

        private long id;
        private string avatar;
        private string userName;
        private string password;
        private string nickName;
        private int sex;
        private int age;
        private int phone;
        private string email;
        private int authority;


        public User() { }

        public User(long id, string avatar, string userName, string password, string nickName, int sex, int age, int phone, string email, int authority)
        {
            this.id = id;
            this.avatar = avatar;
            this.userName = userName;
            this.password = password;
            this.nickName = nickName;
            this.sex = sex;
            this.age = age;
            this.phone = phone;
            this.email = email;
            this.authority = authority;
        }

        public long Id { get => id; set => id = value; }
        public string Avatar { get => avatar; set => avatar = value; }
        public string UserName { get => userName; set => userName = value; }
        public string Password { get => password; set => password = value; }
        public string NickName { get => nickName; set => nickName = value; }
        public int Sex { get => sex; set => sex = value; }
        public int Age { get => age; set => age = value; }
        public int Phone { get => phone; set => phone = value; }
        public string Email { get => email; set => email = value; }
        public int Authority { get => authority; set => authority = value; }
    }
}
